package com.zwps.biz.api.model.dto.auth;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

import com.zwps.common.api.validator.Phone;

/**
 * @author shanwen
 * @description:
 * @date 2023-08-02
 * @ClassName PhoneLoginDTO
 */
@Schema(description = "手机号登录")
@Getter
@Setter
public class PhoneLoginDTO {

    @Schema(description = "验证码")
    @NotBlank(message = "验证码不能为空")
    private String captcha;

    /**
     * 手机号码
     */
    @Schema(description = "手机号码")
    @NotBlank(message = "手机号不能为空")
    @Phone
    private String phone;
}
